const path = require("path");
const resolve = dir => path.resolve(__dirname, dir);
const CracoLessPlugin = require("craco-less");

module.exports = {
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        cssLoaderOptions: {
          modules: { localIdentName: "[local]_[hash:base64:5]" },
        }
      }
    }
  ],
  webpack: {
    alias: {
      '@': resolve("src"),
    },
    "browser": {
      "fs": false
    }
  }
}